﻿/**
* File: TpmusermessageAddModel.cs
* Author: 汪杰
* Create Time:2025/5/7 10:35:34
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JSLCloud.Models;
using JSLCloud.Attributes;
using JSLCloud.DBModel;

namespace JSLCloud.App.Models.Tpmusermessage
{
    /// <summary>
    /// t_pm_usermessage Add Model
    /// </summary>
    [UseAutoMapper(typeof(TpmusermessageDbModel))]
    public class TpmusermessageAddModel
    {
        /// <summary>
        /// 
        /// </summary>
        [Required]
        public new int ID { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        public int? Createid { get; set; }
        /// <summary>
        /// 创建人名字
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Createname { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Createtime { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        [Required]
        public int Deleteflag { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        [Required]
        public int Userid { get; set; }
        /// <summary>
        /// 订阅人
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Username { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        [Required]
        public int Messagetypeid { get; set; }
        /// <summary>
        /// 提醒类型 0 过期前提醒  1过期前连续提醒  2 一直提醒
        /// </summary>
        [Required]
        public int Txlx { get; set; }
        /// <summary>
        /// 过期前提醒的天数
        /// </summary>
        public int? Txts { get; set; }
        /// <summary>
        /// 提前提醒天数
        /// </summary>
        public int Tqts { get; set; }
    }
}
